package desu.nya.animepersistance.model;
// Generated Jan 24, 2012 9:30:18 AM by Hibernate Tools 3.2.1.GA


import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * Studio generated by hbm2java
 */
@Entity
@Table(name="studio"
    ,catalog="animedb"
)
public class Studio  implements java.io.Serializable {

    @Id
    @GeneratedValue(strategy=IDENTITY)
    @Column(name="id", unique=true, nullable=false)
     private Long id;
    @Column(name="studio_name", length=30)
     private String studioName;
    @Column(name="id_wa")
    private Integer idWa;
    @OneToMany(targetEntity=Anime.class)
     private List<Anime> anime=new ArrayList();

    public Studio() {
    }

    public Studio(String studioName) {
       this.studioName = studioName;
    }
   
         public Long getId() {
        return this.id;
    }
    
    public void setId(Long id) {
        this.id = id;
    }
    
        public String getStudioName() {
        return this.studioName;
    }
    
    public void setStudioName(String studioName) {
        this.studioName = studioName;
    }

    public List<Anime> getAnime() {
        return anime;
    }

    public void setAnime(List<Anime> anime) {
        this.anime = anime;
    }

    public Integer getIdWa() {
        return idWa;
    }

    public void setIdWa(Integer idWa) {
        this.idWa = idWa;
    }

    


}


